package com.tencent;

/**
 * @className: com.tencent.Que
 * @description:
 * @author: tong.li
 * @createTime: 2023/2/22 20:59
 * @copyright: Tongcheng-Elong Holdings Limited
 */
public class Que {

    static class Node {
        private Node pre;

        private Node next;

        private Integer data;

        public Node(Integer data) {
            this.data = data;
        }
    }

   static class MyQue {
        private Node head;
        private Node tail;

        private int size;

       public MyQue() {
           size = 0;
       }

       public boolean isEmpty() {
           return size == 0;
       }

       public int size(String[] args) {
           return size;
       }

       public void add(Integer data) {
           Node curr = new Node(data);
           if (head == null) {
               head = tail = curr;
           } else {
               tail.next = curr;
           }
       }

   }

    public static void main(String[] args) {
        MyQue myQue = new MyQue();
        myQue.add(1);
        myQue.add(2);
        System.out.println(myQue);
    }

}
